import itchat
from itchat.content import *
import datetime

@itchat.msg_register([TEXT, MAP, CARD, NOTE, SHARING,PICTURE,RECORDING,ATTACHMENT,VIDEO])
def text_reply(msg):
    print(msg)
    #itchat.send('Python robot test {0}'.format(datetime.datetime.now()), msg['FromUserName'])

@itchat.msg_register([TEXT, NOTE, SHARING],isGroupChat=True)
def MSG_reply(msg):
    print(msg['Content'])
    #itchat.send('Python robot test {0},复制信息:{1}'.format(datetime.datetime.now(),msg['Content']),msg['FromUserName'])

itchat.auto_login(hotReload=True)
itchat.send("{0}".format(datetime.datetime.now()),'filehelper')
itchat.run()


